<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>INFO列表</h1>
<a href="/info/add/">添加记录</a>
<table border="1">
    <thead>
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>密码</th>
            <th>年龄</th>
            <th>尺寸</th>
            <th>颜色</th>
            <th>天气</th>
            <th>日期</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    {% for obj in data_list %}
    <tr>
        <td>{{ obj.id }}</td>
        <td>{{ obj.name }}</td>
        <td>{{ obj.password }}</td>
        <td>{{ obj.age }}</td>
        <td>{{ obj.size }}</td>
        <td>{{ obj.color }}</td>
        <td>{{ obj.whether }}</td>
        <td>{{ obj.create_time |date:"Y-m-d H:i:s"}}</td>
        <td>
            <a href="/info/delete/?nid={{ obj.id }}">删除</a>
        </td>
    </tr>
    {% endfor %}
    </tbody>

</table>
</body>
</html>